package com.usian.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

public class Etc implements Serializable {

    @Id
    private Integer id;

    private String carid;
    private String etcid;
    private String balance;
    private String name;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dateyear;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid;
    }

    public String getEtcid() {
        return etcid;
    }

    public void setEtcid(String etcid) {
        this.etcid = etcid;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDateyear() {
        return dateyear;
    }

    public void setDateyear(Date dateyear) {
        this.dateyear = dateyear;
    }

    @Override
    public String toString() {
        return "Etc{" +
                "id=" + id +
                ", carid=" + carid +
                ", etcid=" + etcid +
                ", balance='" + balance + '\'' +
                ", name='" + name + '\'' +
                ", dateyear=" + dateyear +
                '}';
    }
}
